package org.hive.testserver.service;

import org.hive.testserver.gwt.HiveService;
import org.hive.testserver.service.repository.HiveRepository;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
public class HiveServiceImpl extends RemoteServiceServlet implements HiveService {

	private static final long serialVersionUID = 1L;

	public String greetServer(String input) {
		return "";
	}
	
	private HiveRepository hiveRepository() {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ApplicationSpringConfig.class);
		return applicationContext.getBean(HiveRepository.class);
	}
}
